package com.ruoyi.web.controller.business;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.business.domain.CivilServants;
import com.ruoyi.business.domain.ListType;
import com.ruoyi.business.service.ListTypeService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/listType")
@Api(tags = {"清单列表类型控制器"})
public class ListTypeController extends BaseController {

    @Autowired
    ListTypeService listTypeService;

    @GetMapping
    @ApiOperation("查询清单列表")
    public AjaxResult getList(@ApiParam(value = "正反清单标识（0代表正面 2代表负面）") String prosCons) {
        List<ListType> list = listTypeService.list(prosCons);
        return success(list);
    }
}
